home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 1.iso / games / fibsw130.zip / DELPHSPR.SCC < prev    next >
Text File  |  1994-08-03  |  3KB  |  109 lines

  1. @echo 0 ;%%Delphi via Sprintnet
  2. @echo 0
  3. @rem ******************************************************************
  4. @rem ****                                                         *****
  5. @rem ****   This script logs on to Delphi via Sprintnet           *****
  6. @rem ****   Grateful acknowledgements and thanks to Cary Camden.  *****
  7. @rem ****                                                         *****
  8. @rem ****                                                         *****
  9. @rem ******************************************************************
  10.  
  11. @board 0
  12. @rem ***dial using dial.scr
  13. <dial.scr
  14.  
  15. @rem **** connects to Sprintnet, and then to Delphi****
  16. @echo     "\r\n ****  Please wait, connecting to Sprintnet ****\r\n"
  17.  
  18. @wait 3
  19. @send "\@"
  20. @wait 1
  21. @send "D"
  22. @wait 1
  23. @send "\r"
  24. @wait "TELENET" 20
  25. @wait "TERMINAL=" 20
  26. @send "\r"
  27. @rem  wait 5
  28. @send "C DELPHI\r" 
  29. @wait "DELPHI CONNECTED" 25
  30.  
  31. @rem *****************************************************
  32. @rem ***  Execute the login procedure                   **
  33. @rem *****************************************************
  34.  
  35. @if "%HostLoginName%" != ""
  36. @:RetryLogin
  37. @   if "%NetworkScript%" == "manual.scn"
  38. @       wait "sername:"   ; If manual network connect, don't prompt or timeout for login
  39. @   else
  40. @       echo "\r\n** Logging in...\r\n"
  41. @       if not @wait "sername:" 40    
  42. @           echo "\r\n** Error(delphspr.scc): error - Host Login Prompt not received\r\n"
  43. @           send "\r"
  44. @           goto RetryLogin
  45. @       endif
  46. @   endif
  47. @   send "%HostLoginName%\r"
  48. @   if not @wait "\n" 40
  49. @      echo "\r\n** Error(delphspr.scc): No response to Host Login Name\r\n"
  50. <
  51. @   endif
  52. @   if "%HostPassword%" != ""
  53. @       if not @wait "assword:" 30  ; e.g. "Password:" or "password:"
  54. @           echo "\r\n** Error(delphspr.scc): Host Password prompt not received\r\n"
  55. <
  56. @       endif
  57. @       send "%HostPassword%\r"
  58. @       if not @wait "\n" 40
  59. @           echo "\r\n** Error(delphspr.scc): No response to Host Password\r\n"
  60. <
  61. @       endif
  62. @   else
  63. @       rem ** We need to synchronize around the password **
  64. @       echo "\r\n** Automated login script will resume after you enter your password\r\n"
  65. @       if not @wait "assword:" 40
  66. @          echo "\r\n** Error(delphspr.scc): Host password prompt not received\r\n"
  67. <
  68. @       endif
  69. @       passwordEntry 1
  70. @       wait "\n" 
  71. @       passwordEntry 0
  72. @   endif ; HostPassword
  73. @else 
  74. @   if "%NetworkScript%" != "manual.scn"  ; No prompts if manual network connect
  75. @       echo "\r\n** Automated login script will resume after login is complete\r\n"
  76. @   endif
  77. @   wait "sername:"
  78. @   wait "assword:"
  79. @   passwordEntry 1
  80. @   wait "\n"
  81. @   passwordEntry 0
  82. @endif ; HostLoginName
  83.  
  84.  
  85. @rem ***************************************************
  86. @rem *** Go from MAIN Prompt to Internet Conference ****
  87. @rem ***************************************************
  88.  
  89. @delphifix 1 ; // Ignore LFs, CR -> CR+LF.
  90.  
  91. @wait "MAIN>What do you want to do? "
  92.  
  93. @send "/busy\r"    ;disables confernce messages
  94. @wait "MAIN>What do you want to do? "
  95.  
  96. @send "/prompt=brief\r"
  97. @wait "MAIN>What do you want to do? "
  98.  
  99. @send "/width 255\r"
  100. @wait "MAIN>What do you want to do? "
  101.  
  102. @send "/echo HOST\r"
  103. @wait "MAIN>What do you want to do? "
  104.  
  105.  
  106. @send "go Int telnet %FibsInternetAddress% %FibsTelnetPort%\r"
  107.  
  108. <fibslogn.scr
  109.